package org.dinnermate.gui;

import javax.swing.JPanel;

import org.dinnermate.gui.layout.controller.EditorConstants;

public abstract class BasicPanel extends JPanel
{
	/** The default height of the panel. */
	public final static int DEFAULT_HEIGHT = 600;

	/** The default width of the panel. */
	public final static int DEFAULT_WIDTH =800;

	public BasicPanel()
	{
		// Calls superconstructor.
		super(true);

		// Sets size to default.
		this.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);

		// Calls initialize which must be overridden in concrete class.
		initialize();
	}

	/**
	 * All initialization of extra attributes in subclass must be done here.
	 */
	protected abstract void initialize();
}
